package com.clock.shop.service.impl;

import java.util.List;

import com.clock.shop.domain.ShopRevenue;
import com.clock.shop.mapper.ShopRevenueMapper;
import com.clock.shop.service.IShopRevenueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 流水统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-11
 */
@Service
public class ShopRevenueServiceImpl implements IShopRevenueService
{
    @Autowired
    private ShopRevenueMapper shopRevenueMapper;

    /**
     * 查询流水统计
     * 
     * @param revenueId 流水统计主键
     * @return 流水统计
     */
    @Override
    public ShopRevenue selectShopRevenueByRevenueId(Long revenueId)
    {
        return shopRevenueMapper.selectShopRevenueByRevenueId(revenueId);
    }

    /**
     * 查询流水统计列表
     * 
     * @param shopRevenue 流水统计
     * @return 流水统计
     */
    @Override
    public List<ShopRevenue> selectShopRevenueList(ShopRevenue shopRevenue)
    {
        return shopRevenueMapper.selectShopRevenueList(shopRevenue);
    }

    /**
     * 新增流水统计
     * 
     * @param shopRevenue 流水统计
     * @return 结果
     */
    @Override
    public int insertShopRevenue(ShopRevenue shopRevenue)
    {
        return shopRevenueMapper.insertShopRevenue(shopRevenue);
    }

    /**
     * 修改流水统计
     * 
     * @param shopRevenue 流水统计
     * @return 结果
     */
    @Override
    public int updateShopRevenue(ShopRevenue shopRevenue)
    {
        return shopRevenueMapper.updateShopRevenue(shopRevenue);
    }

    /**
     * 批量删除流水统计
     * 
     * @param revenueIds 需要删除的流水统计主键
     * @return 结果
     */
    @Override
    public int deleteShopRevenueByRevenueIds(Long[] revenueIds)
    {
        return shopRevenueMapper.deleteShopRevenueByRevenueIds(revenueIds);
    }

    /**
     * 删除流水统计信息
     * 
     * @param revenueId 流水统计主键
     * @return 结果
     */
    @Override
    public int deleteShopRevenueByRevenueId(Long revenueId)
    {
        return shopRevenueMapper.deleteShopRevenueByRevenueId(revenueId);
    }
}
